#!/bin/sh
echo "Practice  read command"
read -p "The message just prompt to mind the user how to input values, which will be accepted by next parameter yu:" yu
echo "your input yu=$yu";
read  aname bname cname
echo "read aname bname cname: $aname, $bname , $cname"
echo "loop===================>while"
while  read line
do
   echo "$line"
done < tmpfile.txt

echo "============================>"
i=10;
until [ "$i" -lt 0 ]
do
  echo "i=$i";
  i=`expr $i - 1`
done

echo "CASE  statement ====================================="


read -p "Please input your user name:" name
case $name in 
"dragon") 
      echo "You're the user: dragon"
      ;;
"fly")
      echo "your are the user fly"
      ;;
 *)
    echo "Usage can't find out the user in list"
    ;;
esac
